set currentReleaseNum=2
set workspaceHome=D:\\personworkspace

set driveNum=%workspaceHome:~0,2%
set /a lastReleaseNum=%currentReleaseNum%-1
set lastrelease=%workspaceHome%\\52record\\database\\%lastReleaseNum%\\testdata
set currentrelease=%workspaceHome%\\52record\\database\\%currentReleaseNum%\\migration
echo start to exec script.........
cd %lastrelease%
%driveNum%
del 52record.sql
WinRAR e 52record.rar
mysql -uroot -proot -e "drop database if exists 52record;" 
mysql -uroot -proot -e "create database 52record;"
mysql -uroot -proot 52record -e "source 52record.sql;"
cd %currentrelease%
mysql -uroot -proot 52record -e "source migration_all.sql;"